package com.yami.shop.util;

import cn.hutool.core.util.BooleanUtil;
import cn.hutool.core.util.ObjectUtil;
import io.rong.models.Result;

public class SendUtil {

    private SendUtil() {

    }

    public static boolean requestSuccess(Result result) {
        return ObjectUtil.isNotEmpty(result) && result.getCode().equals(200);
    }

    public static boolean requestError(Result result) {
        return BooleanUtil.isFalse(requestSuccess(result));
    }
}
